
  <form name="theForm" action="order.php?act=step_post&step=edit_goods&order_id={$order_id}&step_act={$step_act}" method="post">
  <div class="list-div">
  <table cellpadding="3" cellspacing="1">
    <tr>
      <th scope="col">商品序号</th>
      <th scope="col">{$lang.goods_name}</th>
      <th scope="col">{$lang.goods_sn}</th>
      <th scope="col">{$lang.goods_price}</th>
      <th scope="col">{$lang.goods_number}</th>
      <th scope="col">{if $step_act eq add}库存{else}剩余库存{/if}</th>
      <th scope="col">{$lang.goods_attr}</th>
      <th scope="col">{$lang.subtotal}</th>
      <th scope="col">{$lang.handler}</th>
    </tr>
    {foreach from=$goods_list item=goods_list name="goods" key="key"}
    <tr>
      <td>{$key}</td>
      <td>
      {if $goods_list.goods_id gt 0 && $goods_list.extension_code neq 'package_buy'}
      <a href="#" onclick="getGoodsInfo({$goods.goods_id});">{$goods_list.goods_name}</a>
      {elseif $goods_list.goods_id gt 0 && $goods_list.extension_code eq 'package_buy'}
      {$goods_list.goods_name}
      {/if}
      </td>
      <td align="center">{$goods_list.goods_sku}<input name="rec_id[]" type="hidden" value="{$goods_list.rec_id}" /></td>
      <td align="center">

        {if $goods_list.extension_code &&  $goods_list.extension_code neq 'limit'}
        赠品
        <input name="goods_price[]" type="hidden" style="text-align:right" value="{$goods_list.goods_price}" size="10" />
        <input name="goods_id[]" type="hidden" style="text-align:right" value="{$goods_list.goods_id}" size="10" />
        <td align="center"><input type="text"  disabled="disabled" style="text-align:right;{if ($goods_list.goods_number > $goods_list.goods_stock)&&$step_act!='edit' }  color:#ff0000; {/if}     " value="{$goods_list.goods_number}" size="6" /><input name="goods_number[]" type="hidden" style="text-align:right;{if ($goods_list.goods_number > $goods_list.goods_stock)&&$step_act!='edit' }  color:#ff0000; {/if}     " value="{$goods_list.goods_number}" size="6" /></td>
        {else}
        <input name="goods_price[]" type="text" style="text-align:right" value="{$goods_list.goods_price}" size="10" />
        <input name="goods_id[]" type="hidden" style="text-align:right" value="{$goods_list.goods_id}" size="10" />
        <td align="center"><input name="goods_number[]" type="text" style="text-align:right;{if ($goods_list.goods_number > $goods_list.goods_stock)&&$step_act!='edit' }  color:#ff0000; {/if}     " value="{$goods_list.goods_number}" size="6" /></td>
        {/if}
        </td>
      <td >{if ($goods_list.goods_number > $goods_list.goods_stock)&&$step_act!='edit' }  <span class="require-field">{$goods_list.goods_stock}</span>{else}{$goods_list.goods_stock}{/if}</td>
      <td align="center">{$goods_list.goods_attr}</td>
      <td align="right">{$goods_list.subtotal}</td>
      <td  align="center"><a href="javascript:confirm_redirect(confirm_drop, 'order.php?act=process&func=drop_order_goods&rec_id={$goods_list.rec_id}&step_act={$step_act}&order_id={$order_id}')">{$lang.drop}</a>
      {if $goods_list.extension_code neq again}
      <a onclick = 'remedy_goods({$goods_list.rec_id});'>标记为补发商品</a>
      {/if}
      {if $goods_list.extension_code eq again}
      <a onclick = ''>补发商品</a>
      {/if}
      </td>
    </tr>
    {/foreach}
    <tr>
      <td colspan="4"><span class="require-field" onclick="$('#consignee').toggle();">显示隐藏收货地址</span></td>
      <td colspan="2">商品数量总计<span style="font-size:20px;">{$count}</span></td>
      <td align="right"><strong>合计：</strong></td>
      <td align="right">{$goods_amount}{if $shipping_fee}  +运费：<input type="text" value="{$shipping_fee}" id="shipping_fee" size="5">  
        <br/>共<span style="font-size:20px;">{$pay_fee}</span>
        {/if}
        {if $paid}
        <br/>已支付{$paid}
             还需要支付{$pay}
        {/if}
      </td>
      <td  align="center">{if $smarty.foreach.goods.total > 0}<input name="edit_goods" type="submit" value="{$lang.update_goods}" />{/if}
      <input name="goods_count" type="hidden" value="{$smarty.foreach.goods.total}" /></td>
    </tr>
  </table>
  </div>
  </form>